﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved All Rights Reserved All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>

namespace FinPlusInterfaces
{
    public interface IServiceConn 
    {
        void Connect(Env env, string config, string user, string serviceKey, string serviceType, string parms, bool isTransposed = true, bool isAsync = false);

        string Key(string serviceName, string parms, string keyFormat);

        IPods GetPods(string serviceKey);

        IDPods GetDPods(string serviceKey);

        IPods Infos();

        bool Stop(string serviceKey);

        bool Start(string serviceKey);

        void Save(string serviceKey, IPod pod);

        void Dispose(string serviceKey);
      
        bool HasCompleted(string serviceKey);
    }
}

